{extend name="default/base/base_seller" /}

{block name="seller_btn"}
  <a href="javascript:void(0)" class="dssc-btn dssc-btn-green" ds_type="dialog" dialog_title="{$Think.lang.apply_new_business_category}" dialog_id="my_goods_brand_apply" dialog_width="480" uri="{:url('Sellerinfo/bind_class_add')}">
      {$Think.lang.apply_new_business_category}
  </a>
{/block}
{block name="seller_main"}
<table class="dssc-default-table">
    <thead>
        <tr>
            <th class="w20"></th>
            <th colspan="3">{$Think.lang.business_category}</th>
            <th>{$Think.lang.commission_rate}</th>
            <th>{$Think.lang.ds_state}</th>
            <th>{$Think.lang.ds_handle}</th>
        </tr>
    </thead>
    <tbody>
        {notempty name="bind_list"}
        {foreach name="bind_list" item="val" }
        <tr class="bd-line">
            <td></td>
            <td class="w180 tl">{$val.class_1_name}</td>
            <td class="w180 tl">{if $val['class_2_name']}>{/if}&emsp;{$val.class_2_name}</td>
            <td class="w180 tl">{if $val['class_3_name']}{/if}&emsp;{$val.class_3_name}</td>
            <td class="w180">{$val.commis_rate} %</td>
            <td class="w100">{if $val['storebindclass_state'] == '1'}{$Think.lang.approved}{else/}{$Think.lang.audit}{/if}</td>
            <td class="dscs-table-handle">
                {if $val.storebindclass_state == '0'}
                <span><a href="javascript:void(0)" class="btn-red" onclick="ds_ajaxget_confirm('{:url('Sellerinfo/bind_class_del',['bid'=>$val.storebindclass_id])}','{$Think.lang.ds_ensure_del}');"><i class="iconfont">&#xe725;</i><p>{$Think.lang.ds_del}</p></a></span>
                {/if}
            </td>
        </tr>
        {/foreach}
        {else /}
        <tr>
            <td colspan="20" class="norecord"><div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div></td>
        </tr>
        {/notempty}
    </tbody>
</table>
{/block}